@import "../../../styles/mixins";

.topic-swiper {
    height: 80vw;

    .slide-image {
        height: 100%;
        width: 100%;
    }
}

.topic-swiper-wrapper {
    position: relative;

    .indicator {
        color: #fff;
        font-size: 12px;
        position: absolute;
        right: 20px;
        bottom: 10px;
        display: flex;
        background-color: rgba(0, 0, 0, 0.6);
        padding: 3px 8px;
        border-radius: 15px;
    }
}

.topic-body {
    padding: 15px;
}

.topic-content {
    color: #808080;
    font-size: 16px;
    text-align: justify;
    margin-bottom: 20px;
}

.topic-views {
    font-size: 14px;
    color: #666;
}

.topic-likes {
    font-size: 12px;
    border-radius: 10px;
    color: #666;
    padding: 2px 5px;
    position: relative;

    &::after {
        content: " ";
        position: absolute;
        left: 0;
        top: 0;
        width: 200%;
        height: 200%;
        transform: scale(.5);
        transform-origin: 0 0;
        border: 1px #999 solid;
        border-radius: 20px;
        z-index: 5;
    }

    .iconfont {
        font-size: 14px;
        margin-right: 5px;
    }
}

.topic-posts {
    display: block;
    padding: 15px;

    .post {
        &-title-view {
            display: flex;
            margin-bottom: 8px;

            .title {
                font-size: 20px;
                font-weight: 500;
            }

            .total {
                font-size: 16px;
                color: #777;
            }
        }

        &-item {
            padding: 10px 0;
            display: flex;
            .border-bottom;

            .avatar-wrapper {
                margin-right: 10px;
            }

            .avatar {
                width: 30px;
                height: 30px;
                border-radius: 15px;
            }

            .username {
                font-size: 12px;
                color: #888;
            }

            .pubtime {
                font-size: 10px;
                color: #888;
                margin-top: 3px;
            }

            .message {
                font-size: 12px;
                color: #333;
                margin-top: 5px;
            }

            .icon-appreciate_light {
                font-size: 18px;
                color: #555;
            }
        }
    }
}

.input-view {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    box-shadow: 0 -1px 0 rgba(200, 200, 200, 0.3);
    z-index: 100;

    .input {
        height: 50px;
        font-size: 16px;
        width: 100%;
        color: #666666;
        padding: 0 15px;
    }
}
